using UserService.Domain.Entities;
using Volo.Abp.Domain.Entities.Events;
using Volo.Abp.EventBus;

namespace UserService.Domain.Events;

/// <summary>
/// 用户创建事件 - 会通过RabbitMQ发布到其他服务
/// </summary>
[EventName("UserService.UserCreated")] // 用于RabbitMQ的路由键
public class UserCreatedEvent : EntityCreatedEventData<UserAggregateRoot>
{
    public UserCreatedEvent(UserAggregateRoot userAggregateRoot) : base(userAggregateRoot)
    {
    }
}